Click here to return to the VHDL Reference Guide. (last edit: 24. september 2012)

Floating

A data type representing an abstraction of a mathematical floating point number. The maximum values for the range are at least +/- 1038, precision is at least 6 decimal digits.

Syntax

  type NewName is range Range;
        

Where

See Declaration

Rules

The lower and upper bounds of the Range must be static floating point Expressions.

Things to remember

The occurrence of an event on a floating point signal can be non-deterministic. An event is a change in value, and whether a floating point value changes depends on how it is represented in the simulator.

Synthesis

Not synthesizable.

Tips

Used for high level simulations, but cannot be used to accurately describe floating point hardware, because it cannot model accuracy, truncation, normalization etc.

Example

  type T is range 0.0 to 1.0;
        

See Also

Number, Range, Type, Subtype, Integer